/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class PrintEntity {
    @NotNull
    private final String fileKey;
    @NotNull
    private final String fileName;
    @NotNull
    private final String paperName;

    public PrintEntity(@NotNull String fileKey, @NotNull String fileName, @NotNull String paperName) {
        Intrinsics.checkNotNullParameter(fileKey, "fileKey");
        Intrinsics.checkNotNullParameter(fileName, "fileName");
        Intrinsics.checkNotNullParameter(paperName, "paperName");
        this.fileKey = fileKey;
        this.fileName = fileName;
        this.paperName = paperName;
    }

    public static /* synthetic */ PrintEntity copy$default(PrintEntity printEntity, String str, String str2, String str3, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = printEntity.fileKey;
        }
        if ((i2 & 2) != 0) {
            str2 = printEntity.fileName;
        }
        if ((i2 & 4) != 0) {
            str3 = printEntity.paperName;
        }
        return printEntity.copy(str, str2, str3);
    }

    @NotNull
    public final String component1() {
        return this.fileKey;
    }

    @NotNull
    public final String component2() {
        return this.fileName;
    }

    @NotNull
    public final String component3() {
        return this.paperName;
    }

    @NotNull
    public final PrintEntity copy(@NotNull String fileKey, @NotNull String fileName, @NotNull String paperName) {
        Intrinsics.checkNotNullParameter(fileKey, "fileKey");
        Intrinsics.checkNotNullParameter(fileName, "fileName");
        Intrinsics.checkNotNullParameter(paperName, "paperName");
        return new PrintEntity(fileKey, fileName, paperName);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PrintEntity)) {
            return false;
        }
        PrintEntity printEntity = (PrintEntity) obj;
        return Intrinsics.areEqual(this.fileKey, printEntity.fileKey) && Intrinsics.areEqual(this.fileName, printEntity.fileName) && Intrinsics.areEqual(this.paperName, printEntity.paperName);
    }

    @NotNull
    public final String getFileKey() {
        return this.fileKey;
    }

    @NotNull
    public final String getFileName() {
        return this.fileName;
    }

    @NotNull
    public final String getPaperName() {
        return this.paperName;
    }

    public int hashCode() {
        return (((this.fileKey.hashCode() * 31) + this.fileName.hashCode()) * 31) + this.paperName.hashCode();
    }

    @NotNull
    public String toString() {
        return "PrintEntity(fileKey=" + this.fileKey + ", fileName=" + this.fileName + ", paperName=" + this.paperName + ')';
    }
}